<!-- Breadcrumbs-->
<ol class="breadcrumb">
    <li class="breadcrumb-item">
        <a href="">博客</a>
    </li>
    <li class="breadcrumb-item active">贴子</li>
</ol>

<div class="container-fluid">
    <a href="{:url('backend/post/index')}" class="btn btn-primary">返回贴子列表</a>
</div>

<div class="row">
    <div class="col-md-12">
        <form action="" method="post" class="form-horizontal">
            <div class="form-group">
                <label class="col-form-label col-sm-3">标签</label>
                <div class="col-sm-9">
                    {volist name = "tags" id = "tag" }
                    <label><input type="checkbox" name="tags[]" value="{$tag->id}">{$tag->name}</label>
                    {/volist}
                </div>
            </div>
            <div class="form-group">
                <label class="col-form-label col-sm-3">标题</label>
                <div class="col-sm-9">
                    <input type="text" name="title" class="form-control" placeholder="请输入标题">
                </div>
            </div>
            <div class="form-group">
                <label class="col-form-label col-sm-3">内容</label>
                <div class="col-sm-9">
                    <textarea  name="content" class="form-control" placeholder="请输入内容" cols="30" rows="10"></textarea>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-3 col-sm-offset-3">
                    <button type="submit" class="btn btn-primary">创建</button>
                </div>
            </div>
        </form>
    </div>
</div>